package db;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

public class Timtheomacauhoi {

	protected Shell shell;
	private Text txtdautien;
	private Text txtcuoi;

	/**
	 * Launch the application.
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Timtheomacauhoi window = new Timtheomacauhoi();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Open the window.
	 */
	public void open() {
		Display display = Display.getDefault();
		createContents();
		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	/**
	 * Create contents of the window.
	 */
	protected void createContents() {
		shell = new Shell();
		shell.setSize(289, 197);
		shell.setText("Tìm Theo Thứ tự ");
		shell.setLocation(700, 100);
		
		Label lblNewLabel = new Label(shell, SWT.CENTER);
		lblNewLabel.setBounds(10, 10, 76, 15);
		lblNewLabel.setText("Vị Trí Đầu Tiên");
		
		Label lblNewLabel_1 = new Label(shell, SWT.CENTER);
		lblNewLabel_1.setBounds(10, 57, 76, 15);
		lblNewLabel_1.setText("Vị Trí cuối");
		
		txtdautien = new Text(shell, SWT.BORDER);
		txtdautien.setBounds(107, 7, 116, 21);
		
		txtcuoi = new Text(shell, SWT.BORDER);
		txtcuoi.setBounds(107, 54, 116, 21);
		
		Button bnttim = new Button(shell, SWT.NONE);
		bnttim.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				
			}
		});
		bnttim.setBounds(100, 105, 97, 44);
		bnttim.setText("Tìm");

	}

}
